The flags parameter to the FlattenMovieData function specifies a set of movie flattening flags. QuickTime 2.1 provides one new flag that you must set when specifying a data reference to flatten a movie to, instead of a file:
enum {
flattenFSSpecPtrIsDataRefRecordPtr = 1L << 4
};